@charset "utf-8";

:root {
    --txt-family: "Microsoft Yahei", sans-serif, tahoma;
    --color-primary: #833AB4;
    --color-secondary: #4042f0;
    --color-bg: white;
    --color-border: rgba(131, 58, 180, .15);
    --color-a: black;
    --color-a-hover: rgba(131, 58, 180, 1);

    --txt-little: .75rem;
    --txt-normal: 1rem;
    --txt-big: 1.25rem;
    --txt-bbig: 1.5rem;

    --border-radius: .4rem;
    --gap: 1rem;
    --transition: all .3s ease-out;

    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    cursor: default;
    font-family: var(--txt-family);
    border-spacing: 0;
    font-style: normal;
    word-break: break-word;
}


/*可选*/
html,
body {
    width: 100%;
    height: 100%;
    font-size: 1rem;
    margin: 0 !important;
    font-family: var(--txt-family);
}

header,
main,
footer {
    width: 100%;
}

input,
button,
img {
    border: 0 none;
    outline-style: none;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--border-radius);
}

span,
a {
    display: block;
    text-decoration: none;
    color: var(--color-a);
    transition: var(--transition);
}

a:hover {
    text-decoration: none;
    cursor: pointer;
    color: var(--color-a-hover);
    text-decoration: none !important;
    transform: scale(1.2);
    z-index: 99999;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(239, 21, 10, 0.5);
}

a.noscale:hover {
    transform: none !important;
    font-weight: normal !important;
    text-shadow: 0 0 10px rgba(181, 21, 10, 0.5);
}

.bshadow {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px 0px;
}

.nowrap {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nowrap2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    white-space: normal;
}

.hide {
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .2s ease-out;
}

::placeholder {
    color: var(--color-bg)
}

::-webkit-scrollbar {
    display: none;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 666;
}


h1 {
    font-size: var(--txt-big)
}

h2,
h3 {
    font-size: var(--txt-normal)
}

body {
    background-color: var(--color-bg);
}

.grid {
    display: grid;
    gap: var(--gap)
}

.gap {
    gap: var(--gap);
}

.clm1 {
    grid-template-columns: auto !important;
}

.clm2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.clm3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.clm4 {
    grid-template-columns: repeat(4, 1fr) !important;
}


.fx {
    display: flex;
}

.fxrow {
    flex-direction: row;
}

.fxrowrev {
    flex-direction: row-reverse;
}

.fxcolumn {
    flex-direction: column;
}

.fxcolumnrev {
    flex-direction: column;
}

.fxnowrap {
    flex-wrap: nowrap;
}

.ps_start {
    justify-content: left;
}

.fx_jc_end {
    justify-content: end;
}

.fx_jc_between {
    justify-content: space-between;
}

.fx_jc_around {
    justify-content: space-around;
}

.fx_jc_center {
    justify-content: center;
}

.fx_ai_start {
    align-items: flex-start;
}

.fx_ai_end {
    align-items: flex-end;
}

.fx_ai_center {
    align-items: center;
}

.fx_ai_baseline {
    align-items: baseline;
}

.fx_ai_stretch {
    align-items: stretch;
}

.fx_ai_baseline {
    align-items: baseline;
}


div.container {
    display: grid;
    grid-template-columns: 222px auto;
    background-color: var(--color-bg);
    transition: var(--transition);
}

div.iconslide {
    grid-template-columns: 5rem auto;
    transition: var(--transition);
}


div.container>header,
div.container>footer {
    grid-column: 1 / 3;
    /* background-color: var(--color-primary); */
    padding: var(--gap);
    line-height: 2rem;
    color: white;
    background: var(--color-primary);
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgb(248, 58, 58) 50%, rgba(252, 176, 69, 1) 100%);
}

div.container>header {
    font-size: var(--txt-big);
    font-weight: bold;
    letter-spacing: .2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

div.container>header>div.user {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

div.container>header>div.user>button {
    border: none;
    background: none;
    color: white;
    font-size: var(--txt-normal);
    font-weight: bold;
    letter-spacing: .2rem;
    cursor: pointer;
    transition: var(--transition);
}

div.container>aside {
    overflow: hidden;
    width: 100%;
    transition: var(--transition);
    min-height: calc(100vh - 4rem);
    container-type: inline-size;
    container-name: cn-aside;
}


div.container>main {
    border-left: 2px solid var(--color-primary);
    position: relative;
}

div.container>aside>ul>li {
    border-bottom: 1px solid var(--color-border);
    display: grid;
    justify-content: center;
    align-items: center;
}

div.container>aside>ul>li:hover,
div.container>aside>ul>li:hover>a>span:hover,
div.container>aside>ul>li:hover>a>img:hover {
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

div.container>aside>ul>li:last-child {
    border-bottom: none;
}

div.container>aside>ul>li>a {
    line-height: 3rem;
    text-align: center;

    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
}

div.container>aside>ul>li>a>img {
    height: 1.4rem;
    width: 1.4rem;
    order: 1;
    transition: var(--transition);
}

div.container>aside>ul>li>a>span {
    order: 2;
}

div.container>aside>ul>li>a:hover {
    font-weight: bold;
    text-decoration: none;
    color: var(--color-a-hover);
}

@container cn-aside (max-width: 100px) {

    div.container>aside>ul>li {
        padding: var(--gap);
    }

    div.container>aside>ul>li>a>img {
        height: 2rem;
        width: 2rem;
        display: block;
    }

    div.container>aside>ul>li>a>span {
        display: none;
    }
}

form.form-signin {
    width: 500px;
    margin: 10rem auto;
}

div.container>main>div.notice {
    position: absolute;
    width: 100%;
    line-height: 3.5rem;
    background-color: #eee;
    display: grid;
    grid-template-columns: 4rem 4rem 4rem auto;
    justify-content: start;
    align-items: center;
}

div.container>main>div.notice>p {
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgb(248, 58, 58) 50%, rgba(252, 176, 69, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


div.container>main>div.notice>span {
    width: 3.5rem;
    height: 3.5rem;
    cursor: pointer;
}

div.container>main>div.notice>span.menu {
    background: url('/static/img/menu.svg') no-repeat center;
    background-size: 3rem 3rem;
}

div.container>main>div.notice>span.back {
    background: url('/static/img/back.svg') no-repeat center;
    background-size: 3rem 3rem;
}

div.container>main>div.notice>span.front {
    background: url('/static/img/back.svg') no-repeat center;
    background-size: 3rem 3rem;
    transform: rotate(180deg);
}



div.container>main>div.content {
    margin-top: 3.5rem;
    padding: var(--gap);
    height: calc(100vh - 8.5rem);
    overflow: auto;
    transition: var(--transition);
}